<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>

    <form action="/user" method="post">
        @csrf
        <p>
            <input type="text" name="search" id="">
            <input type="submit" value="搜索">
        </p>
    </form>

    <table border="1" width="800px">

        <th>ID</th>
        <th>Name</th>
        <th>Password</th>
        <th>TrueName</th>
        <th>Status</th>
        <th>AddTime</th>

        @foreach($data as $value)
            <tr>
                <td>{{$value->id}}</td>
                <td>{{$value->username}}</td>
                <td>{{$value->password}}</td>
                <td>{{$value->truename}}</td>
                <td>{{$value->status}}</td>
                <td>{{$value->add_time}}</td>
            </tr>
        @endforeach

    </table>

</body>
</html>
